import json

from config import BASE_DIR


def build():
    with open(BASE_DIR + '/data/login_data.json', encoding='utf-8') as f:
        list_data = json.load(f)
        new_list = []
        for data in list_data:
            new_data = [data.get('username'), data.get('password'), data.get('expect')]
            new_list.append(new_data)
        return new_list


if __name__ == '__main__':
    print(build())
